package com.example.birdfriends.pojo.message;

public class MessageVo {
    private Long mid;
    private Long senderId;
    private Long receiverId;
    private String createAt;
    private String msg;
    private boolean isRead;
    private Long curLoginUid;


    public void print() {
        System.out.println("MessageVo{" +
                "mid=" + mid +
                ", senderId=" + senderId +
                ", receiverId=" + receiverId +
                ", createAt='" + createAt + '\'' +
                ", msg='" + msg + '\'' +
                ", isRead='" + isRead + '\'' +
                ", curLoginUid='" + curLoginUid + '\'' +
                '}');
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setCurLoginUid(Long curLoginUid) {
        this.curLoginUid = curLoginUid;
    }

    public Long getCurLoginUid() {
        return curLoginUid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    public void setSenderId(Long senderId) {
        this.senderId = senderId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    public void setCreateAt(String createAt) {
        this.createAt = createAt;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getMid() {
        return mid;
    }

    public Long getSenderId() {
        return senderId;
    }

    public Long getReceiverId() {
        return receiverId;
    }

    public String getCreateAt() {
        return createAt;
    }

    public String getMsg() {
        return msg;
    }
}
